	<link type="text/css" rel="stylesheet" href="public/bootstrap/css/bootstrap.css" />
<?php
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
	
		//-------------------------- GET TRUYEN ----------------
		$cache=new cache;
		$url=HOME.'truyentranh/danhsach/';
		$og_url=HOME.'truyentranh/danhsach/';

		$sql ="select id,name,hinhanh, theloai, gioithieu, alias,tinhtrang,ep_moinhat,ep_moinhaturl,views,nguon from anime order by name asc";
		$sql2="select id from anime";
		
		$pager = new Pagination($sql,50000,5,$url,3600);
	
		$pager->setDebug(false);
		$data['info'] = $pager->paginate($cache,$sql2);
		$data['nav']	= $pager->renderFullNav();

$str='<table class="table table-bordered table-hover table-condensed">';		
foreach($data['info'] as $val){
$str.="<tr>";
	$str.="<td class='mg_list_name'><a href='".mangaf1_url_manga($val['id'],$val['alias'])."' >".$val['name']."</a></td>";
	$str.="<td class='mg_list_chap'><a href='".$val['ep_moinhaturl']."'>".$val['ep_moinhat']."</a></td>";
	
$str.="</tr>";
}
$str.="</table>";
echo $str;
?>
<style>
.mg_list_name a{color: #333;font-size: 13px;font-weight: bold;padding-bottom: 2px;font-family: arial,sans-serif; text-decoration:none}
.mg_list_chap a{color:#000; text-decoration:none; font-size:12px}
</style>
<?php
exit();		
			
			
